package com.rpc.common.entity.response;

import lombok.Getter;

import java.io.Serializable;

public enum ResponseType implements Serializable {
    DISCOVER_RESPONSE(0,"服务发现响应"),
    PUBLISH_SUCCESS(1,"服务发布成功"),
    PUBLISHER_OFFLINE(2,"服务发布方下线"),
    PUBLISHER_ONLINE(3,"服务发布方上线");

    @Getter
    private int code;

    @Getter
    private String desc;

    private ResponseType(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
